<div class="accounts index">
	<h2><?php echo __('Accounts Summary'); ?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th>Account</th>
			<th>Currency</th>
			<th>Type</th>
			<th>Branch</th>
			<th>Balance</th>
			<th>Status</th>
			<th class="actions"></th>
	</tr>
	<?php
	foreach ($accounts as $account): ?>
	<tr>
		<td>
			<?php //echo $account['Account']['account_title'] . ' ' .$account['Account']['account_number']; ?>
			<?php echo $this->Html->link($account['Account']['account_title'] . ' ' .$account['Account']['account_number'], array('action' => 'view', $account['Account']['id'])); ?>
		</td>
		<td>
			<?php echo $account['Currency']['currency']; ?>
		</td>
		<td>
			<?php echo $account['Accounttype']['description']; ?>
		</td>
		<td>
			<?php echo $account['Account']['branch']; ?>
		</td>
		<td>
			-
		</td>
		<td>
			<?php echo $account['Account']['account_status']; ?>
		</td>
		<td class="actions">
			<?php echo $this->Html->link(__('View'), array('action' => 'view', $account['Account']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
	));
	?>	</p>

	<div class="paging">
	<?php
		echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
		echo $this->Paginator->numbers(array('separator' => ''));
		echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
	?>
	</div>
</div>

<?php echo $this->element('left-menu');?>